package com.traffic.fuwu.util;

import java.util.Random;

/**
 * Created by pikewei on 2017/2/8.
 */
public class AppKeyUtil {
    /**
     * 获取appKey
     * @return
     */
    public static String getAppKey(){
        String appKey = null;
        try {
            StringBuffer result = new StringBuffer();
            for(int i=0;i<16;i++) {
                result.append(Integer.toHexString(new Random().nextInt(16)));
            }
            appKey = result.toString().toUpperCase();

        } catch (Exception e) {
            e.printStackTrace();

        }
        return appKey;
    }


}
